ui: Fix page-500 response type

The middleware is responsible for wrapping the body with a status code.