One of the conditions where 503s happen is if there are more clients accessing a server than it can handle, e.g. if its
thread pool is exhausted.
If you want to send 503s from your web app, you can do so with the HttpServletResponse methods setStatus and sendError.