Skip to content

Commit 3751992

Browse files
feat(DTFS2-7052): changed numeric status code 200 to HttpStatus.OK, but just in controller
1 parent 33c9e65 commit 3751992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/geospatial/geospatial.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Controller, Get, Query } from '@nestjs/common';
1+
import { Controller, Get, HttpStatus, Query } from '@nestjs/common';
22
import { ApiNotFoundResponse, ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
33

44
import { GetAddressesByPostcodeQueryDto } from './dto/get-addresses-by-postcode-query.dto';
@@ -16,7 +16,7 @@ export class GeospatialController {
1616
"A search based on a property's postcode. Will accept a full valid postcode. Returns addresses from Ordnance Survey Delivery Point Address (DPA) system.",
1717
})
1818
@ApiResponse({
19-
status: 200,
19+
status: HttpStatus.OK,
2020
description: 'Returns simplified addresses that are ready to show to users.',
2121
type: [GetAddressesResponseItem],
2222
})

0 commit comments

Comments
 (0)