Add 400 errors for bad request, 500 for internal server error. Change url structure for query and add example.