Fixed bug with methods/status codes.  Removed some duplicate code. Refactored method/status codes to lists/iteration.