Add status_header() to the API output function. See #1336.