Search code examples
objective-chttpservletspostios7

how can I create a URL/site to send a HTTP 204 or HTTP 403 response?


I'm trying to create an app with a login page to POST to a url and return a status code. For now the app is to call a URL that returns a HTTP 204 or HTTP 403 response. How is this done? Do I need to create/implement a servlet?


Solution

  • Created a servlet using Maven/Eclipse/Tomcat and used HttpServletResponse