im developing an API with FlightPHP microframework and I can't set an HTTP response code for my routes. I can set this and works perfectly:
header('HTTP/1.0 500 Error');
But I want use the native function http_response_code() from PHP. This one don't do anything. I want to use this because that I don't have to manually type the error message.