Refactoring and avoid boilerplate code

@viavansi/movilidad 
No constant for my little beautiful 500 error code?