Abbreviates endpoint definition to 2 lines.
Adds helper function to prepare http status codes outside of resource crud functions.
Removes unused, unnecessary legacy code.