tarantool / nginx_upstream_module

Tarantool NginX upstream module (REST, JSON API, websockets, load balancing)
Other
174 stars 18 forks source link

Return HTTP code 500 on Tarantool exceptions #82

Closed knazarov closed 7 years ago

knazarov commented 7 years ago

If Tarantool throws an exception from the function, this module should return HTTP 500 (Internal Server Error), and return exception text.

knazarov commented 7 years ago

Also return HTTP 502 in case when the stored procedure doesn't return a header nginx expects when using tnt_eval.

dedok commented 7 years ago

Check 2.4.6. (https://github.com/tarantool/nginx_upstream_module#http-headers-and-status)