Ensure that response codes are exposed back to clients

We need to pass the error code returned from the rasterizer back to the error callback or it will be defaulted to 500.