[FLOW3-general] Trying to REST ;)

Bastian Waidelich bastian at typo3.org
Fri Feb 17 12:58:09 CET 2012


Oliver Wand wrote:

Hi Oliver.
I just stumbled upon this question now.. 3 month later (:

> When trying to access a product which isn't here the REST controller
> does NOT return a 404 XML response.
>
> Instead a FLOW3 404 exception is thrown, therefore the standard FLOW3
> html exception is returned.
>
> Obviously this doesn't make much sense in this case but I have no clue
> how to get around this?

You can define which controller is used for 404 with
TYPO3:FLOW3:mvc:notFoundController
in Settings.yaml.

I added a NotFound controller to the RestTest package that detects the 
format and uses a template for the error output [1].

How did you get on with your Rest project?

Best,
Bastian


[1] 
https://github.com/bwaidelich/REST-Test/commit/32225db6507b73a34d49c5b1bef2267009fc3568


More information about the FLOW3-general mailing list