Squashed commit of the following:

commit d14a8a37daa4eff712f77c22acc7906de09eac47
Author: Kam Kasravi <kamkasravi@yahoo.com>
Date:   Tue Aug 19 18:15:16 2014 -0700

    Define all GET noArgs to return BAD_REQUEST when a path component is missing
Sure, will the ErrorResponse can carry details specific to that endpoint?

> On Aug 19, 2014, at 10:27 PM, Suneel Marthi <notifications@github.com> wrote:
> 
> In oryx-ml-oryx-serving/src/main/java/com/cloudera/oryx/ml/serving/als/AllItemIDs.java:
> 
> > @@ -41,6 +43,12 @@
> >  
> >    @GET
> >    @Produces(MediaType.APPLICATION_JSON)
> > +  public Response getNoArgs() {
> > +    return Response.status(Response.Status.BAD_REQUEST.getStatusCode()).entity(new ErrorResponse(Response.Status.BAD_REQUEST.getStatusCode(), "path /allIDs required")).build();
> > +  }
> Wouldn't it be a cleaner and less verbose design if we were to create a common @Provider class that takes the ErrorResponse as a field, instead of repeating this in each class. Thoughts?
> 
> —
> Reply to this email directly or view it on GitHub.