cleaner error body parsing
renamed resources to resource in specs
don't allow updating a closed case, fixed #10