fixes for error messages in Java/JaxRS generated code

Greetings, I ran into a problem where all of my generated APIs contain error messages about pets.   I fixed those problems locally and now submit them to you.  Forgive any errors in protocol, I've never requested a pull before.