Adding status codes to the API