Allow overriding status code in error handlers