The PackageRunner catches a Throwable at the end of the doIt() method and returns a 500 response code for all exceptions.
Instead of the Throwable it should be catching individual exceptions and returning the appropriate response code for each exception.
The PackageRunner catches a Throwable at the end of the doIt() method and returns a 500 response code for all exceptions.
Instead of the Throwable it should be catching individual exceptions and returning the appropriate response code for each exception.