Added an if-def around method calls that were specific a sub spec

Just a small change that fixes an error which arose when a project only has a dependency on `ErrorKit/Core`. The existing code called methods specific to categories defined in `ErrorKit/HTTP`, these have now been wrapped in `ifdef`s so they'll only be applicable when the subspec is used.