code: @Path("/{spaceID}")
      @PUT
      public Response addSpace(@PathParam("spaceID") String spaceID,
                               @QueryParam("storeID") String storeID) {
          String msg = "adding space(" + spaceID + ", " + storeID + ")";
  
          try {
              log.debug(msg);
              return doAddSpace(spaceID, storeID);
  
          } catch (InvalidIdException e) {
              return responseBad(msg, e, BAD_REQUEST);
  
          } catch (ResourceException e) {
              return responseBad(msg, e, INTERNAL_SERVER_ERROR);
  
          } catch (Exception e) {
              return responseBad(msg, e, INTERNAL_SERVER_ERROR);
          }
      }
docs: see SpaceResource.addSpace(String, String, String, String)
  
  @return 201 response with request URI