Fixed HTTP 500 when responses are callables