StatusCodes constants

I replaced int status code values like: 500, 200, 404, etc with constant values from StatusCodes util class.
These values were used, but not in all places.
Thank you.
These .* imports will fail our checkstyle rules, if you just do a mvn clean install on this branch checkstyle will fail the build.