Sorry, totally forgot about this, and yes... my problem was the lack of errors at all, so, using APIMaker, which is very convenient, changed insert and update methods with validate_and_insert, validate_and_update respectively. Now I can che the errors counter in the response.
On Tuesday, November 14, 2017 at 10:13:45 PM UTC-3, Leonel Câmara wrote: > > For me, it's good that the API returns 200 OK and a dict with the errors. > Why do you think 404 would be a good status code? The URL exists, you just > called it with data that did not validate. Still, if that's what you really > want just check for errors in the validate_and_insert and "raise HTTP(404)" > if there are any. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.