J.D. is right, you should use http-functions. And you will prob. have to return a 200/ok if all is well. Returning nothing can lead to awkward results, it depends on implementation.
EDIT: look at the provider’s docs. I have worked with interfaces where they expected the strangest things, like always returning a 200/ok, but if error, the error was expected to be included inside the returned (200/ok) object.