Set correct response status when using prerenderStatusCode