Response types, skipping before filters

Different responses for UI vs. API requests.

Skip before filters that load resources to prevent errors appearing
instead of 501 Not Implemented.