[FIX] Provides a suitable response in case of bad implementation of class

Signed-off-by: Kayo Hamid <kayo@bvcupons.com.br>
[FIX] Better error message

Signed-off-by: Kayo Hamid <kayo@bvcupons.com.br>
[ADJUST] Using HTTP codes to differentiate the exceptions.

Signed-off-by: Kayo Hamid <kayo@bvcupons.com.br>
[MINORFIX] Change the error code for 500

Signed-off-by: Kayo Hamid <kayo@bvcupons.com.br>
Merge pull request #1 from khflab/master

[FIX] Provides a suitable response in case of bad implementation of clas...