added returns to error responses in routes