Rest required now return a success variable

Removed throw form rest required and added a boolean flag